﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Invoicing.Model.Products;
using Invoicing.Command.Products;
namespace Invoicing.Logic.Products
{
    public class ProductRatioLogic
    {
        public static ProductRatioModel GetModel(int id)
        {
            return ProductRatioCommand.GetModel(id);
        }

        public static ProductRatioModel CreateNewRatio(ProductRatioModel model)
        {
            return ProductRatioCommand.CreateNewRatio(model);
        }

        public static void UpdateRatio(ProductRatioModel model)
        {
            ProductRatioCommand.UpdateRatio(model);
        }

        public static void DeleteRatio(int id)
        {
            ProductRatioCommand.DeleteRatio(id);
        }

        public static ProductRatioCollection Gets(ProductRatioQuery sea)
        {
            return ProductRatioCommand.Gets(sea);
        }
    }
}
